package com.yshkj.payment.entity.medicinal;

import com.yshkj.payment.entity.BaseDomain;
import lombok.Builder;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * 药品规格
 * Created by 唐旭 on 2016/10/1.
 */
@Entity
@Table
@Data
public class Spec extends BaseDomain {
    //规格名称
    @Column
    private String name;
    //进价
    @Column
    private BigDecimal inPrice;
    //销售价格
    @Column
    private BigDecimal outPrice;
    //库存数量
    @Column
    private int count;
    //物品编码
    @Column
    private String code;
    //所属药品
    @ManyToOne
    @JoinColumn(name = "medicinal")
    private Medicinal medicinal;
}
